package com.example.demo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 京平笙
 * @since 2021-12-06
 */
public class User  extends Model<User> implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 用户编号
	 */
	@TableId(value = "uid",type = IdType.INPUT)
	private Integer uid;

	/**
	 * 用户名
	 */
	private String uname;

	/**
	 * 用户密码
	 */
	private String upassword;

	/**
	 * 逻辑删除&用户注销
	 */
	@TableLogic(value = "0",delval = "1")
	@TableField(value="uis_delete")
	private Integer uisDelete;


	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getUpassword() {
		return upassword;
	}

	public void setUpassword(String upassword) {
		this.upassword = upassword;
	}

	public Integer getUisDelete() {
		return uisDelete;
	}

	public void setUisDelete(Integer uisDelete) {
		this.uisDelete = uisDelete;
	}

	@Override
	public String toString() {
		return "User{" +
				"uid=" + uid +
				", uname='" + uname + '\'' +
				", upassword='" + upassword + '\'' +
				", uisDelete=" + uisDelete +
				'}';
	}

}
